/*******************************************************************************
 * Copyright (c) 2014-7-13 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>.
 * All rights reserved.
 *
 * Contributors:
 *     <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation
 ******************************************************************************/
package com.foreveross.project.projectonline.jfinal.plugin;

import com.jfinal.plugin.activerecord.cache.ICache;

/**
 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
 * @since 2014-7-13
 */
public class JedisSentinelCache implements ICache {

	public <T> T get(String cacheName, Object key) {
		return (T) CacheKit.get(String.valueOf(key));
	}

	public void put(String cacheName, Object key, Object value) {
		CacheKit.set(String.valueOf(key), value);
	}

	public void remove(String cacheName, Object key) {
		CacheKit.del(String.valueOf(key));
	}

	public void removeAll(String cacheName) {
		// NOT SUPPORT
	}

}
